package org.celery.modules.shop.wrapper;

import lombok.AllArgsConstructor;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import org.celery.modules.shop.entity.ShopUser;
import org.celery.modules.shop.vo.ShopUserVO;

/**
 * 店铺用户关联表包装类,返回视图层所需的字段
 *
 * @author Celery
 * @since 2023-09-11
 */
public class ShopUserWrapper extends BaseEntityWrapper<ShopUser, ShopUserVO>  {

    public static ShopUserWrapper build() {
        return new ShopUserWrapper();
    }

	@Override
	public ShopUserVO entityVO(ShopUser shopUser) {
		ShopUserVO shopUserVO = BeanUtil.copy(shopUser, ShopUserVO.class);

		return shopUserVO;
	}

}
